/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.webbapps.cormac_susilo.fit;

import com.garmin.fit.RecordMesg;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author tor
 */
@Deprecated
@XmlRootElement(name="record")
@XmlAccessorType(XmlAccessType.PROPERTY)
public class RecordMesgWrapper {
    
    private RecordMesg mesg;
    public RecordMesgWrapper() {}
    public RecordMesgWrapper(RecordMesg mesg) {this.mesg = mesg;}
    
    @XmlElement(required = true)
    public String getTimestamp() {
        return String.valueOf(this.mesg.getTimestamp().getTimestamp());
    }
    
    @XmlElement(required = true)
    public String getHeartRate() {
        return String.valueOf(this.mesg.getHeartRate());
    }
    
    @XmlElement(required = true)
    public String getLat() {
        return String.valueOf(this.mesg.getPositionLat());
    }
    
    @XmlElement(required = true)
    public String getLong() {
        return String.valueOf(this.mesg.getPositionLong());
    }
}
